package com.demo2do.boyle.client.handler;

import com.demo2do.boyle.common.entity.customer.Customer;

/**
 * 
 * @author Wilson Jason.Y
 */
public interface OpenIdAuthHandler {

    /**
     * authenticate by open id
     * 
     * @param openId
     * @return
     */
    public Customer authenticate(String openId);
    
    /**
     * logout by customerId
     * 
     * @param customerId
     * @param request
     * @return
     */
    public boolean logout(Customer customer);

}
